package com.hshx.client;


import com.hshx.pojo.Resume;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "gateway",
        path = "/zhaopingService",
        contextId = "ResumeClient")
public interface ResumeClient {


    @RequestMapping("/getAllResume")
    List<Resume> getAllResume();

    @RequestMapping("/getResumeOne")
    Resume getResumeOne(@RequestParam(name = "resume_id") int resume_id);

    @RequestMapping(value = "/addOneResume")
    boolean addOneResume(@SpringQueryMap Resume resume);

    @RequestMapping(value = "/updResume")
    boolean updResume(@SpringQueryMap Resume
                      resume);

    @RequestMapping(value = "/updResumeSecond")
    boolean updResumeSecond(@SpringQueryMap Resume resume,String resume_date1,String resume_datetime1);

    @RequestMapping("/addResume")
    boolean addResume(@SpringQueryMap Resume resume);

    @RequestMapping("/getAllResumeSecond")
    List<Resume> getAllResumeSecond(int pageIndex,int pageSize);

}
